﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Steve.TestHelper;

namespace Steve.Core.Tests
{
    [TestClass]
    public class SiteDirectory_Tests
    {
        [TestMethod]
        public void ArgumentException_Tests()
        {
            var sd = new DirectoryNode<UrlObject,UrlObjectNodeMetadata>("test-name", true);

            ExceptionAssert.ThrowsArgumentNullException(() => sd.NavigateToItem((Uri)null), "url");
            ExceptionAssert.ThrowsArgumentNullException(() => sd.NavigateToDirectory((Uri)null), "url");
        }
    }
}
